<?php
/***************************************************************************
 *   Originally by: Jpmaster77 a.k.a. The Grandmaster of C++ (GMC) - 2004
 *   Last Updated: testauction-php - 2009
 *   site : http://code.google.com/p/testauction-php
 ***************************************************************************/

/***************************************************************************
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU Lesser General Public License as 
 *   published by the Free Software Foundation; either version 2 of the
 *   License, or (at your option) any later version. Although none of the
 *   code may be sold. If you have been sold this script, get a refund.
 ***************************************************************************/

define("WEBSITE_NAME", "Test Auction Site");
define("BONUS_OFFER_COUNT", 50);
define("INVITE_COUNT", 7);
define("INVITE_REWARD", 3);

/**
 * Database Constants - these constants are required
 * in order for there to be a successful connection
 * to the MySQL database. Make sure the information is
 * correct.
 */
define("DB_PROTOCOL", "mysql"); 
define("DB_SERVER", "localhost");
define("DB_USER", "root");
define("DB_PASS", "[YOUR OWN PASSWORD]");
define("DB_NAME", "auctiondb");

/**
 * Database Table Constants - these constants
 * hold the names of all the database tables used
 * in the script.
 */
define("TBL_USERS", "user_data");
define("TBL_PASSWORDS", "pass_data");
define("TBL_USERDATA", "user_pdata");
define("TBL_ACTIVE_USERS",  "active_users");
define("TBL_ACTIVE_GUESTS", "active_guests");
define("TBL_BANNED_USERS",  "banned_users");
define("TBL_TEMP_USERS",  "temp_users");

define("TBL_CREDIT", "credit_data");
define("TBL_PRODUCTS", "product_data");
define("TBL_AUCTIONS", "auction_data");
define("TBL_OFFERS", "offer_data");

define("TBL_ORDERS", "order_data");

/**
 * Special Names and Level Constants - the admin
 * page will only be accessible to the user with
 * the admin name and also to those users at the
 * admin user level. Feel free to change the names
 * and level constants as you see fit, you may
 * also add additional level specifications.
 * Levels must be digits between 0-9.
 */
define("ADMIN_NAME", "admin");
define("GUEST_NAME", "Vizitator");
define("ADMIN_LEVEL", 9);
define("USER_LEVEL",  1);
define("GUEST_LEVEL", 0);

/**
 * This boolean constant controls whether or
 * not the script keeps track of active users
 * and active guests who are visiting the site.
 */
define("TRACK_VISITORS", true);

/**
 * Timeout Constants - these constants refer to
 * the maximum amount of time (in minutes) after
 * their last page fresh that a user and guest
 * are still considered active visitors.
 */
define("USER_TIMEOUT", 10);
define("GUEST_TIMEOUT", 5);

define("OPENING_HOUR", 11);
define("CLOSING_HOUR", 23);

/**
 * Cookie Constants - these are the parameters
 * to the setcookie function call, change them
 * if necessary to fit your website. If you need
 * help, visit www.php.net for more info.
 * <http://www.php.net/manual/en/function.setcookie.php>
 */
define("COOKIE_EXPIRE", 60*60*24*100);  //100 days by default
define("COOKIE_PATH", "/");  //Available in whole domain

/**
 * Email Constants - these specify what goes in
 * the from field in the emails that the script
 * sends to users, and whether to send a
 * welcome email to newly registered users.
 */
define("EMAIL_FROM_NAME", "Test Auction Site");
define("EMAIL_FROM_ADDR", "youremail@address.com");
define("EMAIL_FROM_ADDR_REG", "register@address.com");
define("EMAIL_WELCOME", true);

/**
 * This constant forces all users to have
 * lowercase usernames, capital letters are
 * converted automatically.
 */
define("ALL_LOWERCASE", false);
?>
